The Inbox class is derived from the Outbox class described in the
preceding section. It may be considered as a single row Outbox Object
with the new added feature - Scanf method. Indeed Inbox is
a Virtual Panels style scanf.
Constructor:
The constructor is like the Outbox constructor except the row
parameter
is absent (it always is equal to 1).
Data members:
All are inherited from the object base class (see sect.4).
Methods:
Includes all methods of Outbox (sect.4.5) and object (sect.4) classes.
Scans a series of input fields one character at a time, formats each
field according to the format specifier passed in the format string
*format and stores the formatted input at an addresses passed as an
arguments following *format. In effect it is the same standard scanf
function suited for the Virtual Panels. To enter data push the one
of the next keys on the keyboard: Enter, ESC, Tab or Shift-Tab.
const outboxcolors ibxcoldflt= { YELLOW, WHITE, YELLOW, LIGHTGRAY }; // title text hltext paper
char resp; Inbox *ibxConfirm new Inbox( maxx>>2, maxy>>2, POPUP, "Measurement Ended", 25); ibxConfirm->Paint(); ibxConfirm->cls(); ibxConfirm->Put( "Save data file (N) ? : ", 1); ibxConfirm->Scanf( "%c", &resp); if ( resp=='N' || resp=='n' ) unlink(nameTdepDat); ibxConfirm->Remove();